﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace T_settlement.API.Application.Command.InvoiceCommand
{
    public class UpdateInvoiceCommand:IRequest<int>
    {
        /// <summary>
        /// 发票ID
        /// </summary>
        public int InvoiceId { get; set; }

        /// <summary>
        /// 发票号
        /// </summary>
        /// 
        public string? InvoiceNumber { get; set; }

        /// <summary>
        /// 开票单位
        /// </summary>
        /// 
        public string? Ticket { get; set; }

        /// <summary>
        /// 发票类型
        /// </summary>
        public int? InvoiceType { get; set; }

        /// <summary>
        /// 发票金额
        /// </summary>
        public decimal? InvoiceAmount { get; set; }

        /// <summary>
        ///税率
        /// </summary>
        public decimal? Rate { get; set; }

        /// <summary>
        /// 税额
        /// </summary>
        public decimal? Tax { get; set; }

        /// <summary>
        /// 开票日期
        /// </summary>
        public DateTime? Invoicetime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [StringLength(100)]
        public string? Remark { get; set; }
    }
}
